package com.bdk.middle.member.service;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.member.api.domain.ExchangeRecordDO;
import com.bdk.middle.member.api.query.ExchangeRecordQueryDO;
import com.bdk.middle.member.core.entity.ExchangeRecordEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Reagan
 * @since 2021-03-17
 */
public interface ExchangeRecordService extends IService<ExchangeRecordEntity> {

    /**
     * 添加用户
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO add(ExchangeRecordDO domain);


    /**
     * 获取用户详情
     * @param id 用户ID
     * @return ResultDO
     */
    public ResultDO get(String id);

    /**
     * 查找用户列表分页
     * @param query 查询DO
     * @return ResultDO
     */
    public ResultDO find(ExchangeRecordQueryDO query);
}
